﻿<%@ Page Language="C#" MasterPageFile="~/Provider/CarInsurance/Liberty_CarInsurance.master" AutoEventWireup="true" CodeFile="ViewProviderTICoverTypeLog.aspx.cs" Inherits="Provider_TravelInsurance_Log_ViewProviderTICoverTypeLog" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="provider_inner">
        <h1>
            Travel Cover Type Transaction Log</h1>
        <div>
            <b>Transaction Type</b> :
            <asp:DropDownList ID="ddlTransType" runat="server">
                <asp:ListItem Value="0">All</asp:ListItem>
                <asp:ListItem Value="1">New</asp:ListItem>
                <asp:ListItem Value="2">Update</asp:ListItem>
                <asp:ListItem Value="3">Delete</asp:ListItem>
            </asp:DropDownList>
            &nbsp;<b>Date</b> :<asp:DropDownList ID="ddlYear" runat="server">
                <asp:ListItem Value="0000">All</asp:ListItem>
                <asp:ListItem Value="2010">2010</asp:ListItem>
                <asp:ListItem Value="2011">2011</asp:ListItem>
                <asp:ListItem Value="2012">2012</asp:ListItem>
                <asp:ListItem Value="2013">2013</asp:ListItem>
            </asp:DropDownList>
            <asp:DropDownList ID="ddlMonth" runat="server">
                <asp:ListItem Value="00">All</asp:ListItem>
                <asp:ListItem Value="01">Jan</asp:ListItem>
                <asp:ListItem Value="02">Feb</asp:ListItem>
                <asp:ListItem Value="03">Mar</asp:ListItem>
                <asp:ListItem Value="04">Apr</asp:ListItem>
                <asp:ListItem Value="05">May</asp:ListItem>
                <asp:ListItem Value="06">Jun</asp:ListItem>
                <asp:ListItem Value="07">Jul</asp:ListItem>
                <asp:ListItem Value="08">Aug</asp:ListItem>
                <asp:ListItem Value="09">Sep</asp:ListItem>
                <asp:ListItem Value="10">Oct</asp:ListItem>
                <asp:ListItem Value="11">Nov</asp:ListItem>
                <asp:ListItem Value="12">Dec</asp:ListItem>
            </asp:DropDownList>
            <asp:DropDownList ID="ddlDay" runat="server" ToolTip="Choose Day">
                <asp:ListItem Value="00">All</asp:ListItem>
                <asp:ListItem Value="01">01</asp:ListItem>
                <asp:ListItem Value="02">02</asp:ListItem>
                <asp:ListItem Value="03">03</asp:ListItem>
                <asp:ListItem Value="04">04</asp:ListItem>
                <asp:ListItem Value="05">05</asp:ListItem>
                <asp:ListItem Value="06">06</asp:ListItem>
                <asp:ListItem Value="07">07</asp:ListItem>
                <asp:ListItem Value="08">08</asp:ListItem>
                <asp:ListItem Value="09">09</asp:ListItem>
                <asp:ListItem>10</asp:ListItem>
                <asp:ListItem>11</asp:ListItem>
                <asp:ListItem>12</asp:ListItem>
                <asp:ListItem>13</asp:ListItem>
                <asp:ListItem>14</asp:ListItem>
                <asp:ListItem>15</asp:ListItem>
                <asp:ListItem>16</asp:ListItem>
                <asp:ListItem>17</asp:ListItem>
                <asp:ListItem>18</asp:ListItem>
                <asp:ListItem>19</asp:ListItem>
                <asp:ListItem>20</asp:ListItem>
                <asp:ListItem>21</asp:ListItem>
                <asp:ListItem>22</asp:ListItem>
                <asp:ListItem>23</asp:ListItem>
                <asp:ListItem>24</asp:ListItem>
                <asp:ListItem>25</asp:ListItem>
                <asp:ListItem>26</asp:ListItem>
                <asp:ListItem>27</asp:ListItem>
                <asp:ListItem>28</asp:ListItem>
                <asp:ListItem>29</asp:ListItem>
                <asp:ListItem>30</asp:ListItem>
                <asp:ListItem>31</asp:ListItem>
            </asp:DropDownList>
            <div style="display: none">
                <asp:TextBox ID="txtModifiedDate" runat="server"></asp:TextBox></div>
            <b>Who</b> :
            <asp:DropDownList ID="ddlProviderName" runat="server" OnSelectedIndexChanged="ddlProviderName_SelectedIndexChanged"
                AutoPostBack="True">
            </asp:DropDownList>
            <div style="display: none">
                <asp:DropDownList ID="ddlProviderId" runat="server">
                </asp:DropDownList>
            </div>
            <asp:Label ID="lblProviderEmailAddress" runat="server"></asp:Label>
            &nbsp;<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Refresh Result" />
        </div>
        <asp:GridView ID="grvProviderCarDocument" runat="server" AllowPaging="True" AllowSorting="True"
            PageSize="30" AutoGenerateColumns="False" CellPadding="2" DataKeyNames="TAInsLogId,TAInsId"
            CssClass="progridstyle" EmptyDataText="There are no data records to display."
            GridLines="None" DataSourceID="sqlDsProviderDocumentLog" OnRowDataBound="grvProviderCarDocument_RowDataBound">
            <FooterStyle />
            <PagerStyle />
            <Columns>
                <asp:BoundField DataField="TAInsLogId" HeaderText="TAInsLogId" ReadOnly="True" SortExpression="TAInsLogId"
                    Visible="false" InsertVisible="False" />
                <asp:BoundField DataField="TAInsId" HeaderText="TAInsId" Visible="false" SortExpression="TAInsId"
                    ReadOnly="True" />
                <asp:BoundField DataField="ProviderCompanyId" HeaderText="ProviderCompanyId" Visible="false"
                    SortExpression="ProviderCompanyId" />
                     <asp:BoundField DataField="PlanName" HeaderText="PlanName" SortExpression="PlanName" />
                <asp:BoundField DataField="PlanType" HeaderText="Plan Type" SortExpression="PlanType" />
                <asp:TemplateField HeaderText="Coverage Level" SortExpression="CoverageLevel">
                    <ItemTemplate>
                        <asp:Label ID="lblCoverage" runat="server" Text='<%# GetCoverage(Eval("CoverageLevel"))  %> '></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>                
              
                <asp:BoundField DataField="TransactionType" HeaderText="TransactionType" SortExpression="TransactionType"
                    ReadOnly="True" />
                <asp:BoundField DataField="RefCEUserId" HeaderText="RefCEUserId" SortExpression="RefCEUserId"
                    Visible="false" />
                <asp:TemplateField HeaderText="Email">
                    <ItemTemplate>
                        <asp:Label ID="lblEmail" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:CheckBoxField DataField="Status" HeaderText="Status" SortExpression="Status" />
                <asp:BoundField DataField="ModifiedDate" HeaderText="ModifiedDate" SortExpression="ModifiedDate" />
            </Columns>
            <SelectedRowStyle CssClass="progridover" />
            <HeaderStyle CssClass="progridheader" />
            <EditRowStyle />
            <AlternatingRowStyle CssClass="progridodd" />
            <RowStyle CssClass="progrideven" />
        </asp:GridView>
        <asp:SqlDataSource ID="sqlDsProviderDocumentLog" runat="server" ConnectionString="<%$ ConnectionStrings:CX_DB_Provider_Log_ConnectionString %>"
            SelectCommand="sprocProviderTAInsuranceSelectItemList" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:SessionParameter Name="ProviderCompanyId" SessionField="ProviderCompanyId" Type="Int64" />
                <asp:ControlParameter ControlID="ddlTransType" Name="TransactionType" PropertyName="SelectedValue"
                    Type="Int32" />
                <asp:ControlParameter ControlID="ddlProviderId" Name="RefCEUserId" PropertyName="SelectedValue"
                    Type="Int64" />
                <asp:ControlParameter ControlID="txtModifiedDate" Name="ModifiedDate" PropertyName="Text"
                    Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
            ID="ibtBack" runat="server" ImageUrl="~/Provider/images/buttons/back1.gif" OnClick="ibtBack_Click" />
    </div>
</asp:Content>
